package org.jeecg.modules.data.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: t_data_report
 * @Author: jeecg-boot
 * @Date:   2025-05-20
 * @Version: V1.0
 */
@Data
@TableName("t_data_report")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="t_data_report对象", description="t_data_report")
public class TDataReport implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
	/**调查发布ID*/
	@Excel(name = "调查发布ID", width = 15)
    @ApiModelProperty(value = "调查发布ID")
    @Dict(dictTable = "t_investigation_release", dicText = "crop_type", dicCode = "id")
    private String investigationId;
	/**采样日期*/
	@Excel(name = "采样日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "采样日期")
    private Date samplingDate;
	/**采样地点*/
	@Excel(name = "采样地点", width = 15)
    @ApiModelProperty(value = "采样地点")
    private String samplingLocation;
	/**所属乡镇*/
	@Excel(name = "所属乡镇", width = 15)
    @ApiModelProperty(value = "所属乡镇")
    private String town;
	/**取样区损失量*/
	@Excel(name = "取样区损失量", width = 15)
    @ApiModelProperty(value = "取样区损失量")
    private BigDecimal lossAmount;
	/**当地单位面积产量*/
	@Excel(name = "当地单位面积产量", width = 15)
    @ApiModelProperty(value = "当地单位面积产量")
    private BigDecimal unitAreaYield;
	/**损失率*/
	@Excel(name = "损失率", width = 15)
    @ApiModelProperty(value = "损失率")
    private BigDecimal lossRate;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remarks;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @Dict(dictTable ="sys_user",dicText = "realname",dicCode = "username")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**地区编码*/
    @Excel(name = "地区编码", width = 15)
    @ApiModelProperty(value = "地区编码")
    private String cantCode;

    @TableField(exist = false)
    @ApiModelProperty(value = "调查发布名称")
    private String investigationName;

    @TableField(exist = false)
    @ApiModelProperty(value = "创建人名称")
    private String realname;
    @TableField(exist = false)
    @ApiModelProperty(value = "联系电话")
    private String phone;
    @TableField(exist = false)
    @ApiModelProperty(value = "采样日期")
    private String samplingDateStr;
    @TableField(exist = false)
    @ApiModelProperty(value = "序号")
    private String num;
}
